{% load bootstrap %}
{% spaceless %}
<form id="{{ form_id }}" class="form-horizontal" action="{{ form_action }}" method="POST">{% csrf_token %}
    {{form|bootstrap_horizontal}}
<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10 m-t-1">
	{% with submit_text=form_submit|default:"Submit" %}
	<button type="submit" class="btn btn-primary">{{ submit_text }}</button>
	{% endwith %}
    </div>
</div>
</form>
{% endspaceless %}
